package main

import (
	_ "hxz_rpc/hasic/init"
	send "hxz_rpc/kitex_gen/hxz_rpc/send/sendservice"
	"log"
	"net"

	"github.com/cloudwego/kitex/server"
)

func main() {
	addr, _ := net.ResolveTCPAddr("tcp", "127.0.0.1:9990")
	svr := send.NewServer(new(SendServiceImpl), server.WithServiceAddr(addr))

	err := svr.Run()

	if err != nil {
		log.Println(err.Error())
	}
}
